<?php

class Core_Form_Admincp_Widget_Edit extends Nuo_Form
{
	function init()
	{
		$this -> isAsync();

		$this -> setTitle('Edit Widget');
		
		$this -> addChild('text', 'widget_key', array('label' => 'Code'));
		
		$this -> addChild('text', 'widget_title', array('label' => 'Name'));

		$this -> addChild('text', 'keywords', array('label' => 'Keywords'));

		$this -> addChild('textarea', 'widget_desc', array('label' => 'Description'));

		$this -> addChild('select', 'module_id', array(
			'label' => 'Module',
			'multiOptions' => Nuo::getTable('core/module') -> getMultiOptions()
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');

	}

}
